const successResponse = (data = null, message = 'Success') => ({
    code: 200,
    message,
    data
  });
  
  const errorResponse = (message = 'Error', error = null) => ({
    code: 500,
    message,
    error: error || undefined
  });
  
  module.exports = { successResponse, errorResponse };